<template>
  <div>
    <el-button
        @click="routerLink({router:'/system/test/a',name:'三级1',component:'/user-center/test/c1',routerType:'sub_route',parentName:'测试一个二级'})">
      1
    </el-button>
    <el-button
        @click="routerLink({router:'/system/test/b',name:'三级1',component:'/user-center/test/c2',routerType:'sub_route',parentName:'测试一个二级'})">
      2
    </el-button>

    <router-view></router-view>

  </div>
</template>

<script lang="ts" setup>
//路由
// @ts-ignore
import {useRouter} from "vue-router";

const router = useRouter();

function routerLink(item: any) {
 // pushRoute(item)
}
</script>

<style scoped>

</style>